package com.analyse.stock.constant;

import com.analyse.stock.model.UserFundInfoModel;
import com.analyse.stock.vo.StockPositionVO;
import com.google.common.collect.Maps;

import java.math.BigDecimal;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class StockConstant {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    public static final Map<String, BigDecimal> preTradeAmtMap = Maps.newHashMap();

    /**
     * 开单最近的历史
     */
    public static final Map<String, StockPositionVO> historyTradMap = Maps.newHashMap();

    /**
     * 使用的资金账户
     */
    public static final ConcurrentHashMap<String, UserFundInfoModel> FUND_ACCOUNT_MAP = new ConcurrentHashMap<>();
   }
